package com.intermancer.predictor.system.adamic;

import java.util.ArrayList;
import java.util.List;

import com.intermancer.predictor.gene.Gene;
import com.intermancer.predictor.gene.constant.MultiplicationCG;
import com.intermancer.predictor.gene.window.MovingSumWG;
import com.intermancer.predictor.organism.DefaultOrganismBuilder;
import com.intermancer.predictor.organism.Organism;

public class AdamicOB extends DefaultOrganismBuilder {
	
	public Organism getMovingAverage(int windowSize) {
		return getMovingAverage(-1, windowSize);
	}
	
	public Organism getMovingAverage(int offset, int windowSize) {
		List<Gene> genes = new ArrayList<Gene>(2);
		genes.add(new MovingSumWG(offset, windowSize));
		genes.add(new MultiplicationCG(windowSize, false, true));
		return getOrganism(genes);
	}

}
